// 创建store对象

import { createStore } from 'redux'
//引入reducer函数
import reducer from './reducer'
const store = createStore(reducer)
export default store
// store.subscribe(() => {
//   console.log('store的数据被修改了', store.getState())
// })
